<include file="Layouts:header"/><!-- BEGIN BODY -->
<body class="page-header-fixed">
<!-- BEGIN HEADER -->
<div class="header navbar navbar-inverse navbar-fixed-top">
    <include file="Layouts:navigator"/>
</div>
<!-- END HEADER --><!-- BEGIN CONTAINER -->
<div class="page-container row-fluid">
    <include file="Layouts:slider"/>
    <!-- BEGIN PAGE -->
    <div class="page-content">
        <include file="Layouts:bread_crumb"/>
        <div class="container-fluid mb-container" style="background-color: #fff;">
            <div class="tab-content">
                <div class="tab-pane  active">
                    <div class="portlet box">
                        <div class="portlet-body">
                            <div id="test_content">
                                <table class="table table-striped table-bordered table-hover table-full-width dataTable"
                                       width="100%">
                                    <thead>
                                    <tr>
                                        <th style="vertical-align: middle;text-align: center;" rowspan="2">项目名称</th>
                                        <th style="vertical-align: middle;text-align: center;" rowspan="2">优先级</th>
                                        <th style="vertical-align: middle;text-align: center;" rowspan="2">负责人</th>
                                        <th style="vertical-align: middle;text-align: center;" rowspan="2">说明</th>
                                        <th style="vertical-align: middle;text-align: center;" rowspan="2">状态</th>
                                        <th style="vertical-align: middle;text-align: center;" rowspan="2">备注</th>
                                        <th style="vertical-align: middle;text-align: center;" rowspan="2">日期</th>
                                        <th style="text-align: center;" colspan="2">需求</th>
                                        <th style="text-align: center;" colspan="2">技术设计</th>
                                        <th style="text-align: center;" colspan="2">UED设计</th>
                                        <th style="text-align: center;" colspan="2">开发</th>
                                        <th style="text-align: center;" colspan="2">测试</th>
                                        <th style="text-align: center;">上线</th>
                                    </tr>
                                    <tr>
                                        <th style="text-align: center;">开始</th>
                                        <th style="text-align: center;">完成</th>
                                        <th style="text-align: center;">开始</th>
                                        <th style="text-align: center;">完成</th>
                                        <th style="text-align: center;">开始</th>
                                        <th style="text-align: center;">完成</th>
                                        <th style="text-align: center;">开始</th>
                                        <th style="text-align: center;">完成</th>
                                        <th style="text-align: center;">开始</th>
                                        <th style="text-align: center;">完成</th>
                                        <th style="text-align: center;">完成</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                        <?php
                                        foreach ($issueList as $issue) {
                                        ?>
                                        <tr>
                                            <th style="vertical-align: middle;text-align: center;" rowspan="2"><?php echo $issue['name']; ?></th>
                                            <th style="vertical-align: middle;text-align: center;" rowspan="2"><?php echo $issue['critical'] == 3 ? 'P0' : ($issue['critical'] == 2 ? 'P1' : 'P2'); ?></th>
                                            <th style="vertical-align: middle;text-align: center;" rowspan="2"><?php echo $peopleList[$issue['needer']]['realname']; ?><br><?php echo $peopleList[$issue['developer']]['realname']; ?></th>
                                            <th width="8%" style="vertical-align: middle;text-align: center;" rowspan="2"><?php echo $issue['description']; ?></th>
                                            <th style="vertical-align: middle;text-align: center;" rowspan="2"><?php echo $statusList[$issue['status']]['description']; ?></th>
                                            <th style="vertical-align: middle;text-align: center;" rowspan="2"></th>
                                            <th style="text-align: center;">计划</th>
                                            <th style="text-align: center;"></th>
                                            <th style="text-align: center;"></th>
                                            <th style="text-align: center;"></th>
                                            <th style="text-align: center;"></th>
                                            <th style="text-align: center;"></th>
                                            <th style="text-align: center;"></th>
                                            <th style="text-align: center;"></th>
                                            <th style="text-align: center;"></th>
                                            <th style="text-align: center;"></th>
                                            <th style="text-align: center;"></th>
                                            <th style="text-align: center;"><?php echo $issue['wish_time'] == '0000-00-00 00:00:00' ? '/' : date('Y-m-d', strtotime($issue['wish_time'])); ?></th>
                                        </tr>
                                        <tr>
                                            <th style="text-align: center;background-color: #93d057;">实际</th>
                                            <th width="6%" style="text-align: center;background-color: #93d057;"><?php echo $issue['require_time'] == '0000-00-00 00:00:00' ? '/' : date('Y-m-d', strtotime($issue['require_time'])); ?></th>
                                            <th width="6%" style="text-align: center;background-color: #93d057;"><?php echo $issue['require_confirm_time'] == '0000-00-00 00:00:00' ? '/' : date('Y-m-d', strtotime($issue['require_confirm_time'])); ?></th>
                                            <th style="text-align: center;background-color: #93d057;">/</th>
                                            <th style="text-align: center;background-color: #93d057;">/</th>
                                            <th style="text-align: center;background-color: #93d057;">/</th>
                                            <th style="text-align: center;background-color: #93d057;"><?php echo $issue['wish_origin_time'] == '0000-00-00 00:00:00' ? '/' : date('Y-m-d', strtotime($issue['wish_origin_time'])); ?></th>
                                            <th style="text-align: center;background-color: #93d057;"><?php echo $issue['develop_time'] == '0000-00-00 00:00:00' ? '/' : date('Y-m-d', strtotime($issue['develop_time'])); ?></th>
                                            <th style="text-align: center;background-color: #93d057;"><?php echo $issue['submit_test_time'] == '0000-00-00 00:00:00' ? '/' : date('Y-m-d', strtotime($issue['submit_test_time'])); ?></th>
                                            <th style="text-align: center;background-color: #93d057;"><?php echo $issue['submit_test_time'] == '0000-00-00 00:00:00' ? '/' : date('Y-m-d', strtotime($issue['submit_test_time'])); ?></th>
                                            <th style="text-align: center;background-color: #93d057;"><?php echo $issue['wait_online_time'] == '0000-00-00 00:00:00' ? '/' : date('Y-m-d', strtotime($issue['wait_online_time'])); ?></th>
                                            <th style="text-align: center;background-color: #93d057;"><?php echo $issue['online_time'] == '0000-00-00 00:00:00' ? '/' : date('Y-m-d', strtotime($issue['online_time'])); ?></th>
                                        </tr>
                                        <?php
                                        }
                                        ?>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- loading start -->
        <div id="loadingBox"
             style="display:none;position: fixed; left: 50%; top: 50%; width: 150px; height: 150px; margin-left: -75px; margin-top: -75px;">
            <img src="/Public/frontapp/media/image/loading-spinner.gif"/>
        </div>
        <!-- loading end -->
        <!-- mask start -->
        <div id="mask" class="modal-backdrop" style="display:none;">
        </div>
        <!-- mask end -->
        <include file="Layouts:add_issue_window"/>
    </div>
    <include file="Layouts:foot_page"/>
    <script type="text/javascript" src="/Public/frontapp/sea.js">
    </script>
    <script type="text/javascript" src="/Public/frontapp/config/config.js">
    </script>
    <script type="text/javascript" src="/Public/frontapp/lib/seajs-text.js">
    </script>
    <script type="text/javascript">
        seajs.use("/Public/frontapp/src/chart/people_current.js?v20150819");
        var date = '<?php echo $date; ?>';
    </script>
</body>
<!-- END BODY -->
</html>
